﻿<my:Container x:Class="Net.Chirash.Twitter.TweetZone.WindowComponents.Containers.TimelineContainer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:my="clr-namespace:Net.Chirash.Twitter.TweetZone.WindowComponents.Containers"
             xmlns:wc="clr-namespace:Net.Chirash.Twitter.TweetZone.WindowComponents"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <ListBox 
                 Name="TimelineListBox"
                 ScrollViewer.HorizontalScrollBarVisibility="Auto"
                 ScrollViewer.ScrollChanged="TimelineListBox_ScrollChanged"
                 ScrollViewer.CanContentScroll="True"
                 VirtualizingStackPanel.VirtualizationMode="Recycling"  
                 VirtualizingStackPanel.IsVirtualizing="True"
                 ItemsSource="{Binding Collection}"
                 >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <wc:StatusBox DataContext="{Binding .}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </DockPanel >
</my:Container>
